package com.shuwen.gcdj.mapper.mysql.Statistic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuwen.gcdj.bean.conditionMonitoring.request.HealthQueryReq;
import com.shuwen.gcdj.bean.conditionMonitoring.response.HealthResp;
import com.shuwen.gcdj.bean.equipmentMaintenance.request.EquipmentMaintainReportReq;
import com.shuwen.gcdj.bean.equipmentMaintenance.request.EquipmentPeriodReq;
import com.shuwen.gcdj.entity.statistics.StatisticsHealth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StatisticsHealthMapper extends BaseMapper<StatisticsHealth> {
    HealthResp getSnigle(@Param("bean") HealthQueryReq req);

    List<HealthResp> getList(@Param("bean") HealthQueryReq req);

    //查询整机健康度
    List<HealthResp> getStatistic(@Param("req") EquipmentMaintainReportReq req);

    List<HealthResp> getMaintenancer(@Param("req") EquipmentPeriodReq req);
}
